package com.ms.service.module.fish.message.server;

import java.nio.ByteBuffer;

import com.ms.service.module.fish.game.GameConf;
import com.ms.service.module.fish.message.FishBaseMessage;

/**
 * 更新配置
 * @author cuiwm
 */
public class ConfsMessage extends FishBaseMessage{
	
	private int version;
	public ConfsMessage(int version) {
		this.setVersion(version);
	}
	public int getVersion() {
		return version;
	}
	public void setVersion(int version) {
		this.version = version;
	}
	@Override
	public void writeBody(ByteBuffer buf) {
		buf.putInt(GameConf.version);
		if(GameConf.version > version){
			writeString(buf, "public/confJson");
		}
	}
	
	

}